
<select name='<?php echo isset($singular) ? "{$prefix}_month": "{$prefix}_month[]" ?>' class='sm'>
	<?php if(isset($month)) : ?>
	<?php for($i = 1; $i <= 12; $i++) : ?>
	<option value='<?php echo str_pad($i,2,'0',STR_PAD_LEFT) ?>'<?php echo $month == str_pad($i,2,'0',STR_PAD_LEFT) ? " selected='selected'" : '' ?>><?php echo $i ?></option>
	<?php endfor; ?>
	<?php else : ?>
	<?php for($i = 1; $i <= 12; $i++) : ?>
	<option value='<?php echo str_pad($i,2,'0',STR_PAD_LEFT) ?>'><?php echo $i ?></option>
	<?php endfor; ?>
	<?php endif; ?>
</select>
/
<select name='<?php echo isset($singular) ? "{$prefix}_day": "{$prefix}_day[]" ?>' class='sm'>
	<?php if(isset($day)) : ?>
	<?php for($i = 1; $i <= 31; $i++) : ?>
	<option value='<?php echo str_pad($i,2,'0',STR_PAD_LEFT) ?>'<?php echo $day == str_pad($i,2,'0',STR_PAD_LEFT) ? " selected='selected'" : '' ?>><?php echo $i ?></option>
	<?php endfor; ?>
	<?php else : ?>
	<?php for($i = 1; $i <= 31; $i++) : ?>
	<option value='<?php echo str_pad($i,2,'0',STR_PAD_LEFT) ?>'><?php echo $i ?></option>
	<?php endfor; ?>
	<?php endif; ?>
</select>
/
<select name='<?php echo isset($singular) ? "{$prefix}_year": "{$prefix}_year[]" ?>' class='lg'>
	<?php if(isset($year)) : ?>
	<?php for($i = 2011; $i <= 2012; $i++) : ?>
	<option value='<?php echo $i ?>'<?php echo $year == str_pad($i,2,'0',STR_PAD_LEFT) ? " selected='selected'" : '' ?>><?php echo $i ?></option>
	<?php endfor; ?>
	<?php else : ?>
	<?php for($i = 2011; $i <= 2012; $i++) : ?>
	<option value='<?php echo $i ?>'><?php echo $i ?></option>
	<?php endfor; ?>
	<?php endif; ?>
</select>
